package com.zhiwei.most.ext

import com.blankj.utilcode.util.GsonUtils
import com.blankj.utilcode.util.LogUtils

/**
 * Create by zhiweizhu on 2022/2/28
 * 日志打印扩展
 */
fun klog(str: String){
    if (str.isNullOrEmpty()){
        return
    }
    LogUtils.d(str)
}

fun klog(any: Any?){
    any.notNull(
        {
            klog("klog: ${GsonUtils.toJson(it)}")
        },
        {
            klog("klog: out object is NULL")
        }
    )
}